<%@ page contentType="text/html;charset=UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%//@ include file="../common/meta.jsp"%>
    <title>天安金谷科技园</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link href="<%= basePath %>jslogin/bootstrap/2.2.2/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="<%= basePath %>jslogin/css/login.css" type="text/css" rel="stylesheet"/>
    <script src="<%= basePath %>js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="<%= basePath %>jslogin/bootstrap/2.2.2/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="<%= basePath %>js/jquery.cookie.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
    if (window != top) {
        top.location.href = location.href;
    }

    function addsubmit() {
        var userid = document.getElementById('userid').value;
        if (userid == null || userid == '') {
            alert('账号不能为空！');
            document.getElementById("userid").focus();
            return false;
        }
        var password = document.getElementById('password').value;
        if (password == null || password == '') {
            alert('密码不能为空！');
            document.getElementById("password").focus();
            return false;
        }
        form1.action = "<%= basePath %>htlogon";
        form1.submit();

    }
</script>
<body style="background: #6f8489 url(http://mj.021-e.com/public/static/admin/loginbg/login-bg-1.png) left top no-repeat;">


<div id="login-container">
    <div id="login-header">
        <h3><img src="/portal/images/logo.png">天安金谷科技园</h3>
</div>

    <div id="login-content" class="clearfix">
        <form action="" name="form1" method="post" onkeydown="if(event.keyCode==13)return addsubmit();">
            <fieldset>
                <div class="control-group">
                    <label class="control-label" for="userid">账号：</label>
                    <div class="controls">
                        <input type="text" class="" id="userid" name="userid" value="" autocomplete="off"/>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="password">密码：</label>
                    <div class="controls">
                        <input type="password" class="" id="password" name="password" value=""/>
                    </div>
                </div>
            </fieldset>

            <div id="remember-me" class="pull-left">
                <input type="checkbox" name="remember" id="remember"/>
                <label id="remember-label" for="remember">记住我</label>
                <label><font color='red'>${param.loginMess}</font>

                </label>
            </div>

            <div class="pull-right">
                <button type="button" class="btn btn-warning btn-large" onClick="addsubmit()">登录</button>
            </div>
        </form>
    </div>

    <div id="login-extra">
        <!-- 			<p>
                        没有账号? <a href="javascript:;">注册</a>
                    </p> -->
        <p>
            <!-- 忘记密码? <a href="#">找回密码</a> -->
        </p>
    </div>
</div>
</body>
</html>